Repository navigation
perl::perl: Allow to work with musl libc - #340
Merged
Merged
Conversation
Member
|
Could you check perl-cross again? There seem to be fixes available. There's a pull request for the The locale problem has a recent commit. I would rather piggyback on that mechanism and add L4Re as additional musl case. |
Merged
admlck
force-pushed
the
perl-musl
branch
2 times, most recently
from
October 31, 2026 17:52
034706c to
4ea5939
Compare
Contributor
Author
|
Thanks @jkloetzke, very good hints. Please advice on the long line the lint checker sees. It's the URL of perl-cross I believe. |
rhubert
reviewed
Nov 2, 2026
perl-cross symlinks the sources into the build directory only if there is no MANIFEST there yet. If a previous run was interrupted while symlinking, later runs skip the symlinking and fail, e.g. when patching files in cpan/. Mark a completed configure and start with a fresh build directory if the marker is missing. Signed-off-by: Adam Lackorzynski <adam@l4re.org>
This fixes, among others, locale issues with musl. Drop configure_sigs.sh patch that is no longer required. Signed-off-by: Adam Lackorzynski <adam@l4re.org>
This is arsv/perl-cross#180 that fixes a _GNU_SOURCE issue. Signed-off-by: Adam Lackorzynski <adam@l4re.org>
perl-cross hardcodes glibc's setlocale(LC_ALL, NULL) format, which
returns name=value pairs for mixed locales. musl returns the category
names positionally instead, separated by ';' ("C.UTF-8;C;C;C;C;C").
Perl's native Configure detects this by running a probe, but that's
not possible when cross compiling.
As musl starts with LC_CTYPE=C.UTF-8 and all other categories at C,
the resulting perl panics on startup:
locale.c: 1484: panic: 'C.UTF-8;C;C;C;C;C' needs an '=' to split name=value
; errno=0
Called by locale.c: 4101
Add a patch to perl-cross's configure that checks at compile time for
a libc that is neither glibc nor uclibc and has musl's locale category
layout, and selects the positional format for it. Other targets keep
the name=value format.
Signed-off-by: Adam Lackorzynski <adam@l4re.org>
Member
|
Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.